﻿using Md.Api.Model.Manage.MdUser.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.MdUser;
/// <summary>
/// 通过用户编号获取用户信息服务
/// </summary>
public class GetMdUserByUserIdService : ApiBase<RequestGetMdUserByUserIdModel>
{
    /// <summary>
    /// 用户仓储
    /// </summary>
    public MdUserRep mdUserRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdUserRep.GetMdUserByUserId(Parameter.UserId);

        Result.Data = res;
    }
}

